wayland/surface: Only update the scale if on any outputs
authorJonas Ådahl <jadahl@gmail.com>
Fri, 7 Jan 2022 18:28:36 +0000 (19:28 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 7 Jan 2022 18:32:04 +0000 (19:32 +0100)
commit6efcc028067afbe442aed16b654794dd6bcea5d5
treeac447a4f83a8e1a68746b19b363685e99e2b6880
parent92ca52822c3499fef49cd760f0178cf7262ea47d
wayland/surface: Only update the scale if on any outputs

If we ended up on no output at all, keep the HiDPI scale as is, as it
likely means we were on a workspace that was switched away from. By
keeping the same scale, we avoid unnecessary scale changes that would
otherwise take place if the scale when on monitors would end up being
more than 1.
gdk/wayland/gdksurface-wayland.c